package com.zhentao.controller;

import com.zhentao.model.common.buiness.dto.MaBuinessUserDto;
import com.zhentao.model.common.buiness.pojo.BuUser;
import com.zhentao.model.common.dtos.ResponseResult;
import com.zhentao.service.MaUserService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.util.DigestUtils;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * @author 王越潇
 * @version 1.0
 * @Date 2024/9/17 20:28
 * @Type
 */
@RestController
@RequestMapping("ma/buiness/user")
@Api(tags = "MaBuinessUser",description = "商家入驻管理")
public class MaBuinessUserController {
    @Resource
    private MaUserService maUserService;
    @ApiOperation("管理端：商家入驻管理")
    @PostMapping("maAudit")
    public ResponseResult maAudit(@RequestBody BuUser buUser){
        return maUserService.maAudit(buUser);
    }
    @ApiOperation("管理端：商家入驻列表")
    @PostMapping("findAll")
    public ResponseResult findAll(@RequestBody MaBuinessUserDto dto){
        return maUserService.findAll(dto);
    }

}
